package ai.people.netmon.framework.exception.enums;

/**
 * 档案异常枚举
 *
 * @author yuanqinglong
 * @date 2022/2/15 17:16
 */
public enum InformationSearchExceptionEnum implements ExceptionEnum{

    ILLEGAL_DATA_SOURCE(910000,"非法的第三方数据源"),

    ILLEGAL_BEHAVIOR(910001,"非法的行为"),

    INSUFFICIENT_SCORE(910002,"账户可用积分不足"),

    INFORMATION_SEARCH_ERROR(910003,"信息查询失败"),

    SEARCH_CONFIGURATION_ERROR(910004,"第三方查询接口配置错误"),

    DETAIL_CONFIGURATION_ERROR(910005,"第三方详情接口配置错误"),

    SERVER_UNAVAILABLE(910006,"第三方服务暂不可用"),

    ;


    /**
     * 代码
     */
    final int code;
    /**
     * 消息
     */
    final String message;

    InformationSearchExceptionEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    @Override
    public boolean getStatus() {
        return false;
    }
}
